

import { ICmpnt } from "xcore/cmpnt";
import { enums, EnumItem } from "./enums"


export function addDbCmpnt(cmpnt: ICmpnt, group: string, ...tps: string[]) {
    for (const tp of tps) {
        let items: EnumItem =
            { label: cmpnt.ctl.text, value: cmpnt.ctl.name, group: group, type: "cmpnt-" + tp }
        enums.append(items);
    }
}

